package com.autonavi.yunda.yunji.core.model.condition;

import com.autonavi.yunda.yunji.core.enums.DatasourceType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotNull;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * @author sunzhenbang
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class DatasourceQueryCondition {
    public String dbname;
    public DatasourceType type;
    public List<DatasourceType> typeList;
    public String config;
    public String description;
    public Set<Long> ids = new HashSet<>();
    @NotNull
    public Integer pageNo;
    @NotNull
    public Integer pageSize;
}
